package etc.spec.ytt.week8.home.D1t;

public class Cylinder extends Circle {
    private double hight;
    public Cylinder(double r,double hight){
        super(r);
        this.hight=hight;
    }
    public double getVolume(){
       double volume=getArea()*hight;
       return  getVolume();
    }
    public void show (){
        System.out.println("Volume:"+getVolume());
    }
}
